<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	template="/layout/template.xhtml">

	<ui:define name="body">

		<h:messages globalOnly="true" styleClass="message" errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"/>
    
		<h:form id="review" styleClass="edit">
			<rich:panel>
				<f:facet name="header">Review</f:facet>
			</rich:panel>
			<div class="actionButtons">
				<s:button id="cancel" action="cancel" value="Cancel"/>
				<s:button id="save" action="#{courseWizard.save}" value="Save"/>
			</div>
		</h:form>
		<p>
			<h:form id="workspaceSwitcher">
				<strong style="color: #000000;">Workspace: </strong>
				<h:selectOneMenu id="target" value="#{switcher.conversationIdOrOutcome}" style="vertical-align: bottom;">
					<f:selectItem itemLabel="Return home" itemValue="home"/>
					<ui:remove><f:selectItem itemLabel="Enter new course" itemValue="addCourse"/></ui:remove>
					<f:selectItems value="#{switcher.selectItems}"/>
				</h:selectOneMenu>
				<h:commandButton id="switch" action="#{switcher.select}" value="Switch" style="margin: 0 0 0 3px;">
					<s:conversationPropagation type="none"/>
				</h:commandButton>
				<!-- make the add course button of the conversation switcher is very complicated -->
				<s:button id="addCourse" action="#{courseWizard.addCourse}" propagation="none" value="Add course...">
          			<f:param name="facilityId" value="#{newCourse.facility.id}"/>
        		</s:button>
			</h:form>	
		</p>

	</ui:define> 
</ui:composition>
